<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../lib/bootstrap/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="../css/cart.css"/>
		<link rel="stylesheet" type="text/css" href="../css/HeaderAndFooter.css"/>
		<link rel="stylesheet" href="..//lib/font_x9baqddrs2/iconfont.css">
		<script src="/lib/requirejs/require.min.js" data-main="/js/cart"></script>
	</head>
	<body>
		<header></header>
			<div class="content">
				<div class="cart_empty">
					<h2>未选购商品</h2>
					<h3>是否前往商城购买？<a href="/html/list.html">前往购买</a></h3>
				</div>
				<div class="cart_not_empty">
					<table class="table table-striped table-bordered">
						<thead>
							<tr>
								<th><label><input type="checkbox" class="chk_all"/>全选</label></th>
								<th>序号</th>
								<th>图片</th>
								<th>标题</th>
								<th>价格</th>
								<th>数量</th>
								<th>小计</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody id="cart_body"></tbody>
						<tfoot>
							<tr>
								<td colspan="6">合计</td>
								<td class="total" colspan="2">0.00</td>
							</tr>
						</tfoot>
					</table>
				</div>
			</div>
		<footer></footer>
		<script type="text/html" id="cart-template">
			{{each cart prod}}
			<tr>
				<td><input type="checkbox" class="chk_prod" /></td>
				<td class="id">{{prod.id}}</td>
				<td><img src="{{prod.img}}" ></td>
				<td>{{prod.title}}</td>
				<td>￥<span>{{prod.price}}</span></td>
				<td class="input-group">
					<span class="input-group-addon decrement">-</span>
					<input type="text" value="{{prod.amount}}" class="form-control amount"/>
					<span class="input-group-addon increment">+</span>
				</td>
				<td class="sub">{{(prod.price*prod.amount).toFixed(2)}}</td>
				<td><a href="javascript:void(0);" class="del">删除</a></td>
			</tr>
			{{/each}}
		</script>
	</body>
</html>
